#ifndef SVGNODEGROUP_H
#define SVGNODEGROUP_H
#include "entity_global.h"
#include "svgnodecontainer.h"
class ENTITYSHARED_EXPORT SvgNodeGroup : public SvgNodeContainer
{
public:
	SvgNodeGroup(SvgNode *parent = 0);
	virtual void paint(QPainter *painter,
		const QStyleOptionGraphicsItem *option,
		QWidget *widget = 0);
	virtual SvgTypeENUM svgType() const {
		return SVG_GROUP;
	}

	void initGroup(QList<SvgNode*> list);
	void destroyGroup();

	virtual void onResize(QRectF rect);

protected:
	virtual QList<QPointF> alignPoints(QPointF &center);
	virtual void fromXmlImpl(const QDomElement &xml);
	virtual void updateShape();
	virtual SvgNode* createThis(){ return new SvgNodeGroup; }
	virtual QDomElement toXmlImpl(QDomElement &parent) const;
	virtual void updateFrame();
private:
	int m_framePad;

};

#endif // SVGNODEGROUP_H
